package com.backend.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 房间表
 * @TableName room
 */
@TableName(value ="room")
@Data
public class Room implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 房间号
     */
    @TableField(value = "roomNum")
    private String roomNum;

    /**
     * 房间分类
     */
    @TableField(value = "roomType")
    private String roomType;

    /**
     * 房间状态（空闲，预约）
     */
    @TableField(value = "roomState")
    private String roomState;

    /**
     * 房间图片
     */
    @TableField(value = "roomAvatar")
    private String roomAvatar;

    /**
     * 房间评分
     */
    @TableField(value = "roomRate")
    private Byte roomRate;

    /**
     * 房间价格
     */
    @TableField(value = "roomPrice")
    private Integer roomPrice;

    /**
     * 房间描述
     */
    @TableField(value = "roomDesc")
    private String roomDesc;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 逻辑删除
     */
    @TableLogic
    @TableField(value = "isDelete")
    private Byte isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}